import getpass
card = int(getpass.getpass("请输入数字："))
count = 0
while True:
    if count < 3:
        guess = int(input("请输入你猜测的数字："))
        # 对比数字和猜测数字的大小
        if card == guess:
            print("Good job!")
            break
        elif card > guess:
            print("Bigger.")
        else:
            print("Smaller.")
    else:
        print("哈哈哈哈～猜了这么多次都猜不出来，你好笨啊～")
        break
    count = count + 1

# GetPassWarning: Can not control echo on the terminal.
#   passwd = fallback_getpass(prompt, stream)
# Warning: Password input may be echoed.
# 请输入数字：55
#
# 请输入你猜测的数字：12
# Bigger.
# 请输入你猜测的数字：56
# Smaller.
# 请输入你猜测的数字：57
# Smaller.
# 哈哈哈哈～猜了这么多次都猜不出来，你好笨啊～
